import request from '@/utils/request'

// 查询看样明细列表
export function listViewingDtl(query) {
  return request({
    url: '/wms/viewingDtl/list',
    method: 'get',
    params: query
  })
}

// 初始化
export function initBean() {
    return request({
        url: '/wms/viewingDtl/initBean',
        method: 'post'
    })
}

// 查询看样明细详细
export function getViewingDtl(id) {
  return request({
    url: '/wms/viewingDtl/' + id,
    method: 'get'
  })
}

// 新增看样明细
export function addViewingDtl(data) {
  return request({
    url: '/wms/viewingDtl',
    method: 'post',
    data: data
  })
}

// 修改看样明细
export function updateViewingDtl(data) {
  return request({
    url: '/wms/viewingDtl',
    method: 'put',
    data: data
  })
}

// 删除看样明细
export function delViewingDtl(id) {
  return request({
    url: '/wms/viewingDtl/' + id,
    method: 'delete'
  })
}
